﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/App.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        注 册 账 户</h2>
    <p>
        请填写以下信息:
    </p>
    <%= Html.ValidationSummary("账户创建不成功，请更正后再点击\"注册\"按钮.") %>
    <% using (Html.BeginForm())
       { %>
    <div class="cssform">
        <fieldset>
            <legend>Account Information</legend>
            <p>
                <label for="username">
                     登录名:</label>
                <%= Html.TextBox("username") %>
                <%= Html.ValidationMessage("username") %>
            </p>
            <p>
                <label for="email">
                    邮件:</label>
                <%= Html.TextBox("email") %>
                <%= Html.ValidationMessage("email") %>
            </p>
            <p>
                <label for="password">
                    密码:</label>
                <%= Html.Password("password") %>
                <%= Html.ValidationMessage("password") %>
            </p>
            <p>
                <label for="confirmPassword">
                    确认密码:</label>
                <%= Html.Password("confirmPassword") %>
                <%= Html.ValidationMessage("confirmPassword") %>
            </p>
            <p>
                <input type="submit" value="注册" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
